<?php defined('SYSPATH') or die('No direct script access.');
class Controller_First extends Controller_DefaultTemplate
{

	public function action_index()
	{
		$first_inner = array();
		$first       = array();

		$this->template->title            = 'Kohana 3';
		$this->template->meta_keywords    = 'PHP, Kohana, KO3, Framework';
		$this->template->meta_description = 'A test of of the KO3 framework';

		$this->template->styles  = array('assets/css/red.css' => 'screen');
		$this->template->scripts = array('assets/js/jqtest.js');
		
		View::set_global('x', 'Это глобальная переменная');
		
		$first_inner['content'] = 'У нас есть ещё данные';
		$first['content']       = 'У нас есть данные!';
		$first['first_inner']  = View::factory('blocks/first_inner', $first_inner)
			->render();

		$this->template->content= View::factory('pages/first', $first);
	}

	public function action_dynamic($param)
	{
		$this->request->response = 'Параметр: '.$param;
	}
} //End
